<template>
  <footer class="site-footer">
    <div class="footer-waves">
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
        <path fill="#f5f7fa" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path>
      </svg>
    </div>
    
    <div class="footer-container">
      <div class="footer-content">
        <div class="footer-logo">
          <div class="logo-wrapper">
            <img src="@/assets/logo.png" alt="学习平台" class="logo-image" />
            <div class="logo-text">
              <span class="text-learn">学无止境</span>
             
            </div>
          </div>
      
      
        </div>
      </div>
      
      <div class="footer-bottom">
        <div class="copyright">
          © {{ currentYear }} 学习推荐系统 All Rights Reserved.
        </div>
  
      </div>
    </div>
  </footer>
</template>

<script setup>
import { computed } from 'vue'
import { Message, Share, Link } from '@element-plus/icons-vue'

const currentYear = computed(() => new Date().getFullYear())
</script>

<style lang="scss" scoped>
.site-footer {
  background: linear-gradient(135deg, #4776E6 0%, #8E54E9 100%);
  color: white;
  padding: 60px 0 20px;
  margin-top: 100px;
  position: relative;
}

.footer-waves {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  
  svg {
    display: block;
    width: 100%;
    height: 100%;
  }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.footer-content {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
}

.footer-logo {
  text-align: center;
  max-width: 400px;
  
  .logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    // margin-bottom: 16px;
    
    .logo-image {
      height: 40px;
      width: auto;
      margin-right: 10px;
    }
    
    .logo-text {
      display: flex;
      flex-direction: column;

      .text-learn {
        color: white;
        font-size: 25px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 1px;
      }

      .text-sys {
        color: rgba(255, 255, 255, 0.8);
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
        margin-top: 4px;
        letter-spacing: 2px;
      }
    }
  }
  

  

}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 20px;
  
  .copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
  }
  

}

@media screen and (max-width: 768px) {
  .site-footer {
    padding-top: 60px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
</style> 